package com.example.flex.domain;

import  com.example.flex.listener.RoleMenuListener;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 角色菜单关联表实体类
 * @Author: 不是菜鸡爱编程
 * @Date:
 * @Description：
 */
@Table(value = "role_menu",
    onInsert = RoleMenuListener.class,
    onUpdate = RoleMenuListener.class
)
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "RoleMenuEntity",description = "角色菜单关联表")
public class RoleMenuEntity implements Serializable {
    /**
     * 角色编号
     */
    @ApiModelProperty("角色编号")
    private Long roleId;
    /**
     * 菜单编号
     */
    @ApiModelProperty("菜单编号")
    private Long menuId;
}